package com.blue.blog.api.mapper;

import com.blue.blog.api.pojo.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TagMapper {
    List<Tag> findAllTag();

    Integer saveTag(Tag tag);

    Integer updateTag(Tag tag);

    Integer deleteTagById(Long id);

    Integer saveBlogTag(Long blogId, Long tagId);
}
